package com.cn.wanxi.service.impl;

import com.cn.wanxi.dao.ProductDao;
import com.cn.wanxi.dao.impl.ProductImpl;
import com.cn.wanxi.model.ProductModel;
import com.cn.wanxi.model.ResultModel;
import com.cn.wanxi.service.ProductService;

import java.util.List;

public class ProductServiceImpl implements ProductService {
    @Override
    public List<ProductModel> getProduceModelList(ProductModel productModel) {
        ProductDao productDao=new ProductImpl();
        return productDao.getProduceModelList(productModel);
    }

    @Override
    public ResultModel getProduceDetail(ProductModel productModel) {
        ProductDao productDao=new ProductImpl();
        return ResultModel.getResultModel(productDao.getProduceDetail(productModel));
    }
}
